package com.fa4j.third.sms.adapter;

import com.fa4j.third.base.adapter.AbstractThirdServiceAdapter;
import com.fa4j.third.sms.model.ThirdSmsSendCmd;
import com.fa4j.third.sms.service.ThirdSmsService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MockSmsServiceAdapter extends AbstractThirdServiceAdapter implements ThirdSmsService {

    @Override
    public void init() {
        super.init();
        log.info("初始化{}完成", getProps().getBizCode());
    }

    /**
     * 发送短信
     *
     * @param cmd 参数
     */
    @Override
    public void sendSms(ThirdSmsSendCmd cmd) {
        log.info("MOCK发送短信{}==>{},参数:{}", cmd.getBizCode(), cmd.getPhoneNumber(), cmd.getTemplateParams());
    }


}
